<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="author" content="CarlHuang">
<title>客户升级确认通知</title>
<script language="javascript" src="../script/common.js"
	type="text/javascript"></script>
<script language="javascript" type="text/javascript">
     var qt={};
    function load(){
	   Eui.showNavigation();
	   setPages(["listview"]);
	   createTable();
	}
	
	function createTable(){
	   var columns =[];
	   qt = new QueryTable("grade_change_list3","viewdate","datalist",columns,{
	   buttons:[{value:"升级并通知",actions:up}]});
	   qt.showTable();
	}
		
		//升级并通知
	function up(){
	   DWR.call('gradeService.gradeQuery',function(v){
	   if(v==null)  {
       showWarning("请提供要升级并通知的数据");return;
	   }
	   else{
             {
			  if(showQuestion("确定要升级并通知吗?")==false){
			    return;
				}  	 
			  DWR.call('gradeService.gradeUp',function(){  
			  showInformation("升级并通知成功!");
			  load();  
			  qt.showTable();     
			  },{blockScreen:"true"});
			  switchPage('listview');
			}
		}
		});
	}
			
</script>
</head>
<body onload="load()">
<!--页面导航-->
<div class=" nav ">
<div id="nav">&nbsp;</div>
</div>
<div id="content"><!--查询静态页面部分-->
<div id=listview>
<div class="formTitle">客户升级确认</div>

<form name="viewdate" id="viewdate">

</form>

<div id=datalist></div>
</div>
</body>
</html>
